from user import models
from rest_framework import serializers


class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Users
        fields = '__all__'


class UserLoginSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.UserLogin
        fields = ['user', 'login_type', 'token', 'retoken', 'uid']


class LoginTypeSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.LoginType
        fields = '__all__'



